package day12;

public class Sys extends SoftWare {
    public Sys() {
    }

    public Sys(String name, int size) {
        super(name, size);
    }

    SoftWare[] b = new Sys[3];//操作系统
    public void show() {
        b[0] = new Sys("win7", 800);
        b[1] = new Sys("win8", 1000);
        b[2] = new Sys("win10", 1500);
        for (int i = 0; i < b.length; i++) {
            System.out.println("系统名:" + b[i].getName() + "系统大小:" + b[i].getSize());
        }

    }


}
